package com.jinsp.componentrouter.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import com.jinsp.componentrouter.R;
import com.jinsp.componentrouter.Test;
import com.jinsp.router_annotation.IntentParameter;
import com.jinsp.router_annotation.RegisterRouter;

@RegisterRouter
public class TestActivity extends AppCompatActivity {

    @IntentParameter(name = "test_name")
    String name;
    @IntentParameter
    int age = 100;
    @IntentParameter
    Test test;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
//        RouterApi.init(this);
        String t_name = getIntent().getStringExtra("test_name");
        Log.e("TAG", "onCreate: " + t_name);
    }
}